package com.xqb.qrtz;

import com.xqb.modules.service.EsCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: JinChen Zhu
 * @CreateTime: 2024-10-29  17:53
 */
@Component("AsyncToEs")
public class AsyncToEs {
    @Autowired
    private EsCourseService esCourseService;

    public void toEs() {
        esCourseService.importAll();
    }
}
